package com.fuyu.web.kaogong.security;

import com.fuyu.system.action.ApiIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Set;


@Data
@Component
@NoArgsConstructor
@AllArgsConstructor
public class IgnoreWeb implements ApiIgnore {

    /**
     * 放行路径
     */
    private String[] ignore = new String[]{
            "static/**",
            "resource/**",
            "/favicon.ico",
            "/doc.html/**",
            "/webjars/**",
            "/v3/api-docs/**"
    };


    private Set<String> ignorePathSet = new HashSet<>();

    @Override
    public String[] getIgnore() {
        return ignore;
    }

    @Override
    public Set<String> getIgnorePathSet() {
        return ignorePathSet;
    }
}